(self.webpackChunkpeaches=self.webpackChunkpeaches||[]).push([[4268],{64441:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/welcome/web-new-noj",function(){return n(75052)}])},75052:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return F},default:function(){return web_new_noj}});var o=n(45400),i=n(542),r=n(25594),l=n(3058),c=n(77059),a=n(95802),u=n(41621),s=n(52447),m=n(75239),d=n(77137),f=n(84757),b=n(94114),p=n(98157),h=n(93371),_=n(83292),g=n(74064),w=n(43863);function _templateObject(){let t=(0,_._)(["\n background-color: ",";\n width: 11.25rem;\n height: 3.125rem;\n border-radius: 6.25rem;\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,_._)(["\n color: ",";\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.25rem;\n\n p {\n margin: 0;\n }\n"]);return _templateObject1=function(){return t},t}let j=(0,g.default)(w.$).withConfig({componentId:"sc-34d56128-0"})(_templateObject(),t=>{let{backgroundColor:e}=t;return e||"var(--color-v2-brand-secondary)"}),C=g.default.span.withConfig({componentId:"sc-34d56128-1"})(_templateObject1(),t=>{let{textColor:e}=t;return e||"var(--color-v2-grayscale-black)"});function ActionButton(t){let{section:e,isIOs:n,onClick:i}=t;return(0,o.jsx)(c.Fragment,{children:e.desktopButton.map((t,e)=>t.source.web_desktop&&"ios"===t.reference&&n?(0,o.jsx)(j,{id:t.reference,full:!0,variant:"secondary",backgroundColor:t.backgroundColor,onClick:e=>i(e,t.ctaContent,t.titleContent),children:(0,o.jsx)(C,{textColor:t.titleColor,dangerouslySetInnerHTML:{__html:t.titleContent}})},e):t.source.web_desktop&&"android"===t.reference&&!n?(0,o.jsx)(j,{id:t.reference,full:!0,variant:"secondary",backgroundColor:t.backgroundColor,onClick:e=>i(e,t.ctaContent,t.titleContent),children:(0,o.jsx)(C,{textColor:t.titleColor,dangerouslySetInnerHTML:{__html:t.titleContent}})},e):void 0)})}function new_welcome_styles_templateObject(){let t=(0,_._)(["\n height: 100dvh;\n margin: 0 auto;\n max-width: 90rem;\n overflow-y: scroll;\n scroll-snap-type: y mandatory;\n width: calc(100% - 2.5rem);\n\n @media "," {\n height: 90vh;\n padding: 0;\n }\n"]);return new_welcome_styles_templateObject=function(){return t},t}function new_welcome_styles_templateObject1(){let t=(0,_._)([""]);return new_welcome_styles_templateObject1=function(){return t},t}function _templateObject2(){let t=(0,_._)(["\n position: absolute;\n\n height: 2rem;\n width: 7.4rem;\n\n :nth-child(1) {\n bottom: 4%;\n left: 16%;\n }\n\n :nth-child(2) {\n bottom: 4%;\n left: 52%;\n }\n\n @media "," {\n height: 2.6rem;\n width: 9rem;\n\n :nth-child(1) {\n bottom: 8%;\n left: 12%;\n }\n\n :nth-child(2) {\n bottom: 8%;\n left: 32%;\n }\n }\n\n @media "," {\n height: 3.2rem;\n width: 12rem;\n\n :nth-child(1) {\n bottom: 8%;\n left: 12%;\n }\n\n :nth-child(2) {\n bottom: 8%;\n left: 32%;\n }\n }\n\n @media "," {\n height: 4rem;\n width: 14rem;\n\n :nth-child(1) {\n bottom: 8%;\n left: 12%;\n }\n\n :nth-child(2) {\n bottom: 8%;\n left: 32%;\n }\n }\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){let t=(0,_._)(["\n height: auto;\n margin-bottom: 1.813rem;\n position: relative;\n scroll-snap-align: start;\n width: 100%;\n z-index: 0;\n\n @media "," {\n height: auto;\n margin-bottom: 1.6rem;\n }\n"]);return _templateObject3=function(){return t},t}function _templateObject4(){let t=(0,_._)([""]);return _templateObject4=function(){return t},t}function _templateObject5(){let t=(0,_._)([""]);return _templateObject5=function(){return t},t}function _templateObject6(){let t=(0,_._)(["\n display: none;\n left: 50%;\n position: absolute;\n top: 90%;\n transform: translate(-50%, -50%);\n\n @media "," {\n display: block;\n }\n"]);return _templateObject6=function(){return t},t}function _templateObject7(){let t=(0,_._)(["\n width: 100%;\n height: auto;\n"]);return _templateObject7=function(){return t},t}function _templateObject8(){let t=(0,_._)(["\n background-color: ",";\n font-weight: 700;\n padding: 1rem;\n border-radius: 6.25rem;\n text-decoration: none;\n\n p {\n margin: 0;\n }\n\n :hover {\n text-decoration: none;\n }\n"]);return _templateObject8=function(){return t},t}function _templateObject9(){let t=(0,_._)(["\n color: ",";\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.25rem;\n\n p {\n margin: 0rem;\n }\n"]);return _templateObject9=function(){return t},t}function _templateObject10(){let t=(0,_._)(["\n background-color: ",";\n bottom: 0rem;\n display: block;\n left: 0rem;\n margin: 2rem 0 0 0;\n padding: 1rem;\n position: fixed;\n right: 0rem;\n width: 100%;\n z-index: 1;\n\n @media "," {\n background: none;\n box-shadow: none;\n margin: 1rem 0 0 0;\n padding: 0rem;\n position: relative;\n width: 70%;\n z-index: 1;\n }\n"]);return _templateObject10=function(){return t},t}function _templateObject11(){let t=(0,_._)(["\n ","\n display: block;\n\n @media "," {\n display: none;\n }\n"]);return _templateObject11=function(){return t},t}function _templateObject12(){let t=(0,_._)(["\n width: 100%;\n height: auto;\n scroll-snap-align: start;\n\n @media "," {\n margin-bottom: 1.6rem;\n height: auto;\n }\n"]);return _templateObject12=function(){return t},t}let v=g.default.main.withConfig({componentId:"sc-5b3effe8-0"})(new_welcome_styles_templateObject(),u.qs.md),O=g.default.div.withConfig({componentId:"sc-5b3effe8-1"})(new_welcome_styles_templateObject1()),x=g.default.a.withConfig({componentId:"sc-5b3effe8-2"})(_templateObject2(),u.qs.md,u.qs.lg,u.qs.xl),k=g.default.section.withConfig({componentId:"sc-5b3effe8-3"})(_templateObject3(),u.qs.md),y=g.default.picture.withConfig({componentId:"sc-5b3effe8-4"})(_templateObject4()),I=g.default.source.withConfig({componentId:"sc-5b3effe8-5"})(_templateObject5()),B=g.default.div.withConfig({componentId:"sc-5b3effe8-6"})(_templateObject6(),u.qs.md),q=g.default.img.withConfig({componentId:"sc-5b3effe8-7"})(_templateObject7()),S=(0,g.css)(_templateObject8(),t=>{let{backgroundColor:e}=t;return e||"var(--color-v2-brand-secondary)"}),z=g.default.span.withConfig({componentId:"sc-5b3effe8-8"})(_templateObject9(),t=>{let{textColor:e}=t;return e||"var(--color-v2-grayscale-black)"}),D=g.default.div.withConfig({componentId:"sc-5b3effe8-9"})(_templateObject10(),t=>{let{showWhiteBackground:e}=t;return e?"var(--color-v2-grayscale-white)":"none"},u.qs.md),P=(0,g.default)(w.$).withConfig({componentId:"sc-5b3effe8-10"})(_templateObject11(),S,u.qs.md),A=g.default.section.withConfig({componentId:"sc-5b3effe8-11"})(_templateObject12(),u.qs.md);function NewWelcome(t){let{nojSectionImages:e,shop:n,cms_footer:r,nojButton:l}=t,[_,g]=(0,c.useState)(!1),w=(0,i.useRouter)();!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"web_new_noj";(0,c.useEffect)(()=>{let e=(0,h.jS)(t);(0,p.tB)({experiment_name:t,variant_name:e})},[])}();let{cmsFooter:j}=r,{termsConditions:C,paymentsMethods:S,logo:M}=j,E=(0,b.Z)(),F=w.pathname.split("/welcome/").pop();(0,s.K)({title:"".concat(F),type:"new_noj"});let{DisabledHeaderAndFooter:T}=(0,m.q)(),onClick=(t,e,n)=>{t.preventDefault(),t.stopPropagation(),e&&((0,a.gc)({position:"banner_button_new_noj",name:n,source:"new_noj",device:(0,d.pE)()}),window.location.href=e)};return(0,c.useEffect)(()=>{E&&g(!0)},[E]),(0,o.jsxs)(v,{children:[e.map((t,e)=>{var n;return(0,o.jsx)(k,{children:(0,o.jsxs)(y,{children:[(0,o.jsx)(I,{media:u.qs.md,srcSet:t.desktopImage}),(0,o.jsx)(O,{children:null===(n=t.links)||void 0===n?void 0:n.map((t,e)=>(0,o.jsx)(x,{href:t},e))}),(0,o.jsx)(q,{src:t.mobileImage,alt:t.title}),t.desktopButton&&(0,o.jsx)(B,{children:(0,o.jsx)(ActionButton,{section:t,isIOs:_,onClick:onClick})})]})},e)}),T&&(0,o.jsx)(A,{children:(0,o.jsx)(f.w,{as:"footer",contact:n,termsConditions:C,paymentsMethods:S,logo:M})}),(0,o.jsx)(D,{showWhiteBackground:!0,children:l.map(t=>(0,o.jsx)(P,{id:t.id,full:!0,variant:"secondary",backgroundColor:t.backgroundColor,onClick:e=>onClick(e,t.ctaContent,t.titleContent),children:(0,o.jsx)(z,{textColor:t.titleColor,dangerouslySetInnerHTML:{__html:t.titleContent}})},t.id))})]})}n(27244),n(88044),n(88577);var M=n(36522),E=n(967),F=!0,web_new_noj=function(t){let{cms:e,storefront:n,featureFlags:c,seoTitle:a,slug:u,nojSectionImages:s,nojButton:m}=t,d=(0,i.useRouter)();if(d.isFallback)return(0,o.jsx)(r.R,{});let{shop:f}=n;return(0,o.jsxs)(l.Y6,{isHome:!0,cms:e,featureFlags:c,storefront:n,withoutMarginBottom:!0,children:[(0,o.jsx)(E.y,{shop:f,title:a,description:f.description,url:"".concat(f.domain.url,"welcome/").concat(u)}),(0,o.jsx)(M.T,{}),(0,o.jsx)(NewWelcome,{cms_footer:e,nojButton:m,nojSectionImages:s,shop:f})]})}},77137:function(t,e,n){"use strict";n.d(e,{pE:function(){return getAnalyticForDevice},vN:function(){return sanitizeBillboardButton},FG:function(){return serializeAppsDownload},FF:function(){return serializeBenefitsSwimlineData},wt:function(){return serializeCarrouselText},oU:function(){return serializeDualSwimlines}});var o=n(31291);function sanitizeButton(t,e){let n=t||[],o=Object.keys(e);return function(t,e){let n=t.find(t=>e.every(e=>!!t.source[e]));return n?{backgroundColor:n.background_color,title:n.title_content,titleColor:n.title_color,url:n.cta_content}:null}(n,o)}function sanitizeBillboardButton(t){return{button:sanitizeButton(t,{web_desktop:!0}),buttonMobile:sanitizeButton(t,{web_mobile:!0})}}function serializeCarrouselText(t){return{userText:t.user_text,anonymousUserText:t.anonymous_user_text}}function serializeBenefitsSwimlineData(t){return t.swimline_benefits.map(t=>({imageURL:t.image.data.attributes.url,titleContent:t.title_content,titleColor:t.title_color,subtitleContent:t.subtitle_content,subtitleColor:t.subtitle_color,backgroundColor:t.background_color}))}function serializeDualSwimlines(t){let e=t.testimonials.map(t=>({videoUrl:t.video_url,username:t.username,highlightImage:t.highlight_image.data.attributes.url,avatarIcon:t.avatar_image.data.attributes.url})),n={titleContent:t.title_testimonials,testimonials:e},o=t.quote_content.map(t=>({quote:t.quote,logoIcon:t.logo_icon.data.attributes.url})),i={titleContent:t.title_content_news,titleIcon:t.title_icon_news.data.attributes.url,quoteContent:o};return{swimlineTestimonials:n,swimlineNews:i}}function serializeAppsDownload(t){return{title:t.title_content,image:t.image.data.attributes.url,buttons:t.items.map(t=>({cta:t.cta,image:t.image.data.attributes.url}))}}function getAnalyticForDevice(){let t=(0,o.P)();return"mobile"===t?"web_mobile":"web_desktop"}},3058:function(t,e,n){"use strict";n.d(e,{PE:function(){return j},Y6:function(){return C}});var o=n(45400),i=n(77059),r=n(26716),l=n(85259),c=n(93371),a=n(2815),u=n(75239),s=n(84757),m=n(26545),d=n(17776),f=n(91153),b=n(44570),p=n(46036),h=n(26701),_=n(83292),g=n(74064);function _templateObject(){let t=(0,_._)(["\n background-color: var(--color-v2-grayscale-white);\n height: 100%;\n min-height: 100vh;\n"]);return _templateObject=function(){return t},t}let w=g.default.div.withConfig({componentId:"sc-2034e6-0"})(_templateObject()),j=(0,a.Z)(l.F,f.i,r.K,d.K)(function(t){let{children:e,cms:n,storefront:r,withoutMarginBottom:l}=t,{isAuthenticated:a}=(0,i.useContext)(b.c),d=(0,c.Ri)("user_id");(0,p.q)({isAuthenticated:a,userId:d});let{categories:f,shop:_}=r,{navigationShortcuts:g,referralBanners:j,cmsHeader:C,cmsFooter:v}=n,{termsConditions:O,paymentsMethods:x,logo:k}=v,{logo:y}=C,{DisabledHeaderAndFooter:I}=(0,u.q)();return(0,o.jsxs)(w,{children:[(0,o.jsx)(h.C,{}),I&&(0,o.jsx)(m.Y,{as:"header",categories:f,shortcuts:g,referralBanners:j,logo:y,withoutMarginBottom:l}),e,I&&(0,o.jsx)(s.w,{as:"footer",contact:_,termsConditions:O,paymentsMethods:x,logo:k})]})}),C=(0,a.Z)(l.F,f.i,r.K,d.K)(function(t){let{children:e,cms:n,storefront:r,withoutMarginBottom:l}=t,{isAuthenticated:a}=(0,i.useContext)(b.c),s=(0,c.Ri)("user_id");(0,p.q)({isAuthenticated:a,userId:s});let{categories:d}=r,{navigationShortcuts:f,referralBanners:_,cmsHeader:g}=n,{logo:j}=g,{DisabledHeaderAndFooter:C}=(0,u.q)();return(0,o.jsxs)(w,{children:[(0,o.jsx)(h.C,{}),C&&(0,o.jsx)(m.Y,{as:"header",categories:d,shortcuts:f,referralBanners:_,logo:j,withoutMarginBottom:l}),e]})});function Layout_queries_templateObject(){let t=(0,_._)(["\n query ReferralSettingsQuery {\n referralSettings {\n referralTextReferralBar\n }\n }\n"]);return Layout_queries_templateObject=function(){return t},t}(0,n(81299).J1)(Layout_queries_templateObject()),n(67922),n(28630)},52447:function(t,e,n){"use strict";n.d(e,{K:function(){return useTrackPage}});var o=n(77059),i=n(10260);function useTrackPage(t){(0,o.useEffect)(()=>{(0,i.D)({name:"Page",url:window.location.href,...t})},[])}},75239:function(t,e,n){"use strict";n.d(e,{q:function(){return useBRAndPEDisabled}});var o=n(95948);let useBRAndPEDisabled=()=>{let{getProperty:t}=(0,o.i)(),e=t("country"),n="PE"===e,i="BR"===e;return{DisabledHeaderAndFooter:!(n||i),country:e,isPE:n,isBR:i}}},31291:function(t,e,n){"use strict";function isMobile(){return"undefined"!=typeof navigator&&(768>Math.min(window.screen.width,window.screen.height)||navigator.userAgent.indexOf("Mobi")>-1)}function getDevice(){return isMobile()?"mobile":"desktop"}n.d(e,{F:function(){return isMobile},P:function(){return getDevice}})},36522:function(t,e,n){"use strict";n.d(e,{T:function(){return Scripts}});var o=n(45400);n(77059);var i=n(36423),r=n.n(i);function Scripts(t){let{useMapsScript:e}=t;return(0,o.jsxs)(o.Fragment,{children:["",e&&(0,o.jsx)(r(),{src:"https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyDe1rr6QGAsqZdh6OHGNVHEqYWDflBAEoo","&libraries=places&callback=Function.prototype&v=weekly")})]})}},94114:function(t,e,n){"use strict";n.d(e,{Z:function(){return isIOsPlatformAllDevices}});var o=n(31291);function isIOsPlatformAllDevices(){if("undefined"==typeof navigator)return!1;let t=(0,o.P)(),e=navigator.userAgent,n=!!e.match(/iPad/i)||!!e.match(/iPhone/i)||!!e.match(/iPod/i)||"MacIntel"===navigator.platform,i=!!e.match(/WebKit/i),r=n&&i&&!!e.match(/CriOS/i),l=n&&i&&!e.match(/CriOS/i);return"desktop"===t?l:r}},88044:function(){},27244:function(){},88577:function(){}},function(t){_N_E=Promise.all([t.f.consumes||function(t,e){},t.f.remotes||function(t,e){}].reduce(function(t,e){return e("4268",t),t},[])).then(function(){return t.X(0,[7304,3839,694,8196,6527,1299,9636,5223,5010,2394,6963,9225,7794,5301,6423,4144,542,1477,4316,5594,636,8792],function(){return t(t.s=64441)})})}]);